function UniqBy(_array, key = 'id') {
    var seen = {};
    return _array.filter(function (item) {
        return seen.hasOwnProperty(item[key]) ? false : (seen[item[key]] = true);
    })
}

export default UniqBy